#include<stdio.h>

int main()
{
	int x, y=1, n;
	scanf_s("%d", &n);
	for (x =1; x <= n; x++)
	{
		y = y * x;

	}
	printf("%d\n", y);
	return 0;

}